<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>XXX安装 - 开始安装</title>

    <!-- Bootstrap core CSS -->
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="style/common.css" rel="stylesheet">
    <link href="style/tree.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

<div class="container">
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="page-header">
                <h1>XXX 安装</h1>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-2 col-sm-3">
            <nav>
                <ul class="nav nav-pills nav-stacked">
                    <li role="presentation"><a href="index.html"> 1) &nbsp; 安装说明 </a></li>
                    <li role="presentation"><a href="nodes.html"> 2) &nbsp; 节点列表 </a></li>
                    <li role="presentation"><a href="roles.html"> 3) &nbsp; 角色配置 </a></li>
                    <li role="presentation"><a href="settings.html"> 4) &nbsp; 参数设置 </a></li>
                    <li role="presentation" class="active"><a href="javascript: void(0);"> 5) &nbsp; 开始安装 </a></li>
                </ul>
            </nav>
        </div>
        <div class="col-md-10 col-sm-9">

            <div id="rolesPanel" class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title">开始安装</h2>
                </div>
                <div class="panel-body">
                    <div class="tree">
                        <ul>
                            <li>
                                <span><i class="glyphicon glyphicon-cloud"></i> 安装详情</span>
                                <ul>
                                    <li>
                                        <span><i class="glyphicon glyphicon-minus-sign"></i> 角色配置</span>
                                        <ul>
                                            <li class="tree-collapse">
                                                <span><i class="glyphicon glyphicon-minus-sign"></i> Master Node</span>
                                                <ul>
                                                    <li>
                                                        <span><i class="glyphicon glyphicon-hdd"></i> hostname-1 &nbsp;/&nbsp;192.168.1.1</span>
                                                    </li>
                                                    <li>
                                                        <span><i class="glyphicon glyphicon-hdd"></i> hostname-2 &nbsp;/&nbsp;192.168.1.2</span>
                                                    </li>
                                                </ul>
                                            </li>
                                            <li class="tree-collapse">
                                                <span><i class="glyphicon glyphicon-minus-sign"></i> Backup Master Node</span>
                                                <ul>
                                                    <li>
                                                        <span><i class="glyphicon glyphicon-hdd"></i> hostname-1 &nbsp;/&nbsp;192.168.1.1</span>
                                                    </li>
                                                    <li>
                                                        <span><i class="glyphicon glyphicon-hdd"></i> hostname-2 &nbsp;/&nbsp;192.168.1.2</span>
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <span><i class="glyphicon glyphicon-minus-sign"></i> 参数设置</span>
                                        <ul>
                                            <li class="tree-collapse">
                                                <span><i class="glyphicon glyphicon-minus-sign"></i> 关系数据库</span>
                                                <ul>
                                                    <li>
                                                        <span><i class=""></i> url -> <mark>
                                                            jdbc:mysql://hostname:3306/test
                                                        </mark></span>
                                                    </li>
                                                    <li>
                                                        <span><i class=""></i> user -> <mark>root</mark></span>
                                                    </li>
                                                    <li>
                                                        <span><i class=""></i> password -> <mark>***</mark></span>
                                                    </li>
                                                </ul>
                                            </li>
                                            <li class="tree-collapse">
                                                <span><i class="glyphicon glyphicon-minus-sign"></i> Redis</span>
                                                <ul>
                                                    <li>
                                                        <span><i class=""></i> IP -> <mark>192.168.1.2</mark></span>
                                                    </li>
                                                    <li>
                                                        <span><i class=""></i> Port -> <mark>6379</mark></span>
                                                    </li>
                                                    <li>
                                                        <span><i class=""></i> DB -> <mark>0</mark></span>
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>

                </div>
            </div>
            <p>
                <a href="settings.html" class="btn btn-default">上一步</a>
                <button type="button" class="btn btn-primary" data-toggle="modal"
                        data-target="#installprogressModal">
                    开始安装
                </button>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="copyright">Copyright © 2010 - 2016 TIZA. All Rights Reserved</div>
        </div>
    </div>
</div>


<!-- Install progress Modal -->
<div class="modal fade" id="installprogressModal" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog"
     aria-labelledby="installprogressModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="installprogressModalLabel">安装进行中</h4>
            </div>
            <div class="modal-body">
                <h4>安装详情</h4>
                <div class="well">
                    <p>
                        ## Install log <br>
                        check ssh<br>
                        install hadoop<br>
                        install kafka<br>
                        install hbase<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                        install storm<br>
                    </p>
                </div>
                <h4>安装进度</h4>
                <div class="progress">
                    <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45"
                         aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: 45%">
                        <strong>45%</strong>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">完成</button>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="script/common.js"></script>
<script src="script/tree.js"></script>

</body>
</html>
